# 导包
from api.add666 import add


# 创建测试类
class TestAddAPI:
    def test01(self):
        # case01: 1 + 1 = 2
        # 获取实际结果
        result = add(x=1, y=1)
        # 打印实际结果
        print(result)
        # 断言
        assert result == 2

    def test02(self):
        # case02: 1 + 0 = 1
        # 获取实际结果
        result = add(x=1, y=0)
        # 打印实际结果
        print(result)
        # 断言
        assert result == 1

    def test03(self):
        # case03: 0 + 0 = 0
        # 获取实际结果
        result = add(x=0, y=0)
        # 打印实际结果
        print(result)
        # 断言
        assert result == 0



